<template>
  <div>
    <div class="login">login</div>
    <div class="cunt">'count',{{count}}</div>
    <div class="cunt">{{name}}</div>
    <button @click="updateCount">ADDDDDDDDD</button>
  </div>
</template>
<script>
import { mapGetters, mapMutations } from 'vuex';

export default {
  data() {
    return {
      name: '张沪生',
    };
  },
  computed: {
    ...mapGetters(['count']),
  },
  methods: {
    ...mapMutations(['updateCount']),
  },
};
</script>

<style lang="stylus" scoped>
.login {
  font-size: 70px;
  color: red;
}

.cunt {
  font-size: 50px;
}
</style>

